package com.bwie.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.mapper.JourneyMapper;
import com.bwie.pojo.Journey;
import com.bwie.service.JourneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JourneyServiceImpl extends ServiceImpl<JourneyMapper, Journey> implements JourneyService {

    @Autowired
    private JourneyMapper journeyMapper;

    @Override
    public List<Journey> journeyList() {
        return journeyMapper.journeyList();
    }

    @Override
    public Journey echoJourneyList(Integer id) {
        return journeyMapper.echoJourneyList(id);
    }



    @Override
    public void updateStatus(Journey journey) {
        journeyMapper.updateStatus(journey);
    }
}
